SG Window Window Object
Style Property

©1998 by Stinga

See Also     Properties     Methods      Events     Constants     Error Codes
Description

Manipulates window style flags.

Syntax

object.Style

The object is expression that evaluates to the Window object.

Remarks

Window styles are boolean constants which define the appearance and behavior of windows. SG Window defines style constants in the WinStyle enumeration.

Example

Folowing VB example displays captions of all top level minimized windows:

Dim w As New SGWindow.Window
Dim child As SGWindow.Window
w.AttachDesktop

For Each child In w.Children
   If (child.Style And ws_MINIMIZE) <> 0 Then
      MsgBox child.Text
   End If
Next

This is same example but modified for VBScript:

Const ws_MINIMIZE = &H20000000&

Dim w, child
Set w = CreateObject("SGWindow.Window")
w.AttachDesktop

For Each child In w.Children
   If (child.Style And ws_MINIMIZE) <> 0 Then
      MsgBox child.Text
   End If
Next